<div class="content-heading">
	{{product.prodName}} <small>套餐:{{discnt.discntName}}</small>
</div>
<div *ngIf="show">
	<ncloud-customer [customer]="customer" [clearCustomer]="previousClick" (cselect)="customerSelected($event)"></ncloud-customer>
	<ncloud-node #ncloudnode ngModel (addDiscnt)="addDiscnt($event)" (deleteDiscnt)="deleteDiscnt($event)" [product]="product" 
		name="nodeInfos" [(ngModel)]="nodeInfos" (calculated)="calculated($event)"></ncloud-node>
	<button style="float:right" class="mb-sm btn btn-primary btn-outline" type="button" (click)="gotopay()">
		{{('crm.sale.gotopay' | translate) || '去结算'}}
	</button>
	<button style="float:right" class="mb-sm btn btn-primary btn-outline" type="button" (click)="cancel()">
		{{('crm.sale.cancelButton' | translate) || '取消'}}
	</button>
	
</div>
<div *ngIf="!show">
	<upload-primeng (deleteAllFiles)="noFileUploaded()" (uploaded)="fileUploaded($event)"></upload-primeng>
	<ncloud-fee #fee [fees]="discnts" (onValid)="feeValid = $event"></ncloud-fee>
	<button style="float:right" class="mb-sm btn btn-primary btn-outline" [disabled]="!submitable||!feeValid" type="button" (click)="submit()">
	{{('crm.sale.submitButton' | translate) || '确认提交'}}
	</button>
	<button style="float:right" class="mb-sm btn btn-primary btn-outline" type="button" (click)="previous()">
		{{('crm.sale.previous' | translate) || '上一步'}}
	</button>	
</div>
<ncloud-feeShow [(value)]="msgs"></ncloud-feeShow>